/* #header */

#header {
    height: 54px;
    border-bottom: 1px solid #BBB;
    box-shadow: 0 0 6px #D6D6D6;
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
}

#header .left {
    margin-left: 30px;
}

#logo {
    line-height: 52px;
    font-size: 21px;
    background: url('../img/logo.png') -6px center no-repeat;
    padding-left: 36px;
    color: #3a8fc4;
}

#nav li {
    display: inline-block;
}

#nav a {
    padding: 6px 21px 7px 21px;
    margin-right: .2em;
    line-height: 52px;
    height: 52px;
    font-size: 15px;
    border: 1px solid transparent;
    color: #666;
}

#nav a:hover, #nav a.current {
    background-color: #F4F4ff;
    border-color: #DDD;
    border-radius: 0 8px;
    color: #2279a3;
}

/* #main */

#main {
    padding: 90px 0 36px 0;
    position: relative;
}

.main-content {
    margin-left: 30px;
    margin-right: 285px;
    min-height: 710px;
}

.main-side {
    position: absolute;
    right: 30px;
    top: 96px;
    width: 220px;
}

#blog-all, #blog-one, #error-page {
    margin: 0 30px;
}

/* .blog-item */

.blog-item {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px dashed #CCC;
}

.blog-item .comments, .blog-monthly .comments {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    background-color: #64d033;
    border: 1px solid #5bb82e;
    text-align: center;
    font-size: 18px;
    color: #FFF;
    border-radius: 0 12px;
    margin-right: 16px;
}

.blog-item .comments:hover, .blog-monthly .comments:hover {
    background-color: #5bb82e;
}

.blog-item .title {
    display: inline-block;
    margin-right: 30px;
    font-size: 18px;
}

.blog-item .time {
    font-size: 16px;
    color: #AAA;
}

.blog-item .content {
    padding: 12px 0 8px 0;
}

.blog-item .meta span {
    margin-right: 18px;
}

.blog-item-pager a {
    display: inline;
    margin-left: 15px;
    background-color: #DDD;
    padding: 3px 8px;
    color: #444;
    border-radius: 3px;
}

.blog-item-pager a:hover, .blog-item-pager a.current {
    background-color: #666;
    color: #FFF;
}

.blog-item-pager .all {
    color: #888;
}

#blog-bread {
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 24px;
    color: #666;
    padding-left: 16px;
    border-left: 4px solid #AAA;
}

#blog-bread .category-desc, #blog-bread .user-desc {
    margin-left: 18px;
    font-size: 13px;
    color: #AAA;
}

/* #search */

#search .btn {
    width: 50px;
}

#search .ipt {
    width: 160px;
}

/* .side */

.side {
    margin-bottom: 18px;
}

.side .title {
    font-size: 14px;
    font-weight: bold;
}

#category li {
    margin-left: 6px;
}

#category .num, #popular .num {
    display: inline;
    font-size: 12px;
    padding: 2px 5px;
    background-color: #ff8350;
    color: #FFF;
    margin-right: 12px;
    border-radius: 2px;
}

#popular li {
    text-indent: 6px;
}

#new-comments .name {
    padding: 2px 6px;
    background-color: #5092BD;
    color: #FFF;
    border-radius: 2px;
}

#new-comments li {
    margin-bottom: 8px;
}

/* #footer */

#footer {
    padding: 24px 30px;
    border-top: 1px solid #BBB;
    background-color: #F0F0F0;
    line-height: 24px;
    font-size: 12px;
    color: #888;
}

#footer .links a {
    margin-right: 21px;
}

/* --- blog all list --- */

.blog-monthly {
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #DDD;
}

.blog-monthly .month-name, .blog-monthly .title {
    line-height: 40px;
    margin-right: 18px;
    font-size: 18px;
}

.blog-monthly .month-name {
    color: #999;
}

.blog-monthly li {
    margin-bottom: 8px;
}

.blog-monthly .key {
    color: #999;
    margin-right: 24px;
}

.blog-monthly .comments {
    border-radius: 0;
    height: 24px;
    width: 24px;
    line-height: 24px;
    font-size: 14px;
}

/* --- .blog-container --*/

.blog-container, #comment {
    position: relative;
}

.blog-meta, .comment-meta {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
}

.blog-main, .comment-main, #comment-form, .comment-pager, #comment-reply {
    margin-left: 144px;
}

.blog-meta p {
    margin-bottom: 8px;
}

.blog-meta .time {
    font-size: 18px;
    color: #999;
}

.blog-main {
    min-height: 160px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #CCC;
}

.blog-meta a {
    padding: 2px 6px;
    border-radius: 3px;
    color: #FFF;
}

.blog-meta .category a {
    background-color: #64d033;
}

.blog-meta .comments a {
    background-color: #5092BD;
}

.blog-meta .hit a {
    background-color: #AAA;
}

.blog-main .title {
    font-size: 18px;
}

.blog-main .content {
    margin: 8px 2px;
    line-height: 36px;
    font-size: 14px;
}

.blog-main .content blockquote {
    padding: 8px 12px;
    border-left: 4px solid #BBB;
    background-color: #EDEDED;
    margin: 6px 0;
}

.blog-main .content ul li {
    list-style: circle inside;
}

.blog-main .content hr.blog-break {
    display: none;
}

/* --- #comment --- */

.comment-meta {
    font-size: 16px;
    color: #888;
}

.comment-meta .num {
    padding: 2px 6px;
    background-color: #f8785f;
    color: #FFF;
    border-radius: 3px;
    margin-right: 6px;
}

.comment-item {
    position: relative;
    margin-bottom: 24px;
}

.comment-item .avatar {
    position: absolute;
    width: 40px;
    height: 40px;
    padding: 2px;
    border: 1px solid #D6D6D6;
    background-color: #FFF;
}

.comment-item .meta, .comment-item .content {
    margin-left: 58px;
}

.comment-item .meta {
    line-height: 16px;
    margin-bottom: 6px;
}

.comment-item .time {
    font-size: 12px;
    color: #999;
    margin-left: 18px;
}

.comment-item .meta:hover .reply {
    display: inline;
}

.comment-item .reply, .comment-item .no-reply, .comment-item .status {
    margin-left: 18px;
    font-size: 12px;
}

.comment-item .reply {
    display: none;
}

.comment-item .no-reply, .comment-item .status {
    color: #dd3838;
}

.comment-children .comment-item {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px dashed #D6D6D6;
    margin-left: 24px;
    margin-bottom: 0;
    border-left: 1px dashed #D6D6D6;
    padding-left: 18px;
}

.comment-children .avatar {
    width: 32px;
    height: 32px;
}

.comment-children .meta, .comment-children .content {
    margin-left: 50px;
}

.comment-children .comment-children .comment-item {
    margin-left: 18px;
}

.comment-item .floor {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 21px;
    color: #D6D6D6;
}

#comment-form {
    position: relative;
    height: 150px;
}

.comment-form-meta {
    width: 220px;
    position: absolute;
}

.comment-form-content {
    margin-left: 240px;
}

#comment-content {
    height: 111px;
    resize: none;
    width: 96%;
}

.comment-form-meta .ipt {
    width: 200px;
    margin-bottom: 16px;
}

#comment-submit {
    position: absolute;
    bottom: 6px;
    right: 0;
    width: 130px;
}

#comment-submit.error {
    background-color: #ed3a3a;
}

.comment-pager {
    line-height: 24px;
    margin-bottom: 18px;
    border-bottom: 1px solid #EEE;
    padding-bottom: 6px;
}

.comment-pager a {
    padding: 2px 6px;
    margin-right: 8px;
}

.comment-pager .current {
    border-bottom: 2px solid #4f95bf;
}

.comment-error {
    font-size: 12px;
    padding: 2px 6px;
    line-height: 24px;
    background-color: #f8f6c9;
    border: 1px solid #BBBBBB;
    color: #ba2e2e;
}

#comment-reply {
    padding: 12px 18px;
    border: 1px solid #D6D6D6;
    display: none;
    margin-bottom: 24px;
    background-color: #f0f8ef;
}

#comment-reply .comment-item {
    margin-bottom: 0;
}

@media screen and (max-width: 800px) {
    .main-side {
        display: none;
    }

    .main-content {
        margin-right: 30px;
    }

    #footer .right {
        float: none;
        display: block;
    }

    .comment-meta {
        font-size: 0;
    }

    #comment{
        position: static;
    }

    #blog-one{
        position: relative;
    }

    .comment-meta .num {
        font-size: 18px;
        position: absolute;
        z-index: 100;
        width: 30px;
        height: 30px;
        text-align: center;
        padding: 0;
        border:1px solid #ba2e2e;
        border-radius: 0 12px;
    }

    .blog-meta {
        display: none;
    }

    .blog-main, .comment-main, #comment-form, .comment-pager, #comment-reply {
        margin-left: 0;
    }

    #blog-one.comment .blog-main .title{
        margin-left: 48px;
    }
}

@media screen and (max-width: 480px) {
    .comment-form-meta .ipt{
        width: 160px;
    }
    .comment-form-content{
        margin-left: 200px;
    }
    #comment-content{
        width: 88%;
    }
}
